<?php

define('DEFAULT_CHARSET', 'UTF-8');
mb_internal_encoding(DEFAULT_CHARSET);
mb_regex_encoding(DEFAULT_CHARSET);

if (!defined('DS')) {
    define('DS', DIRECTORY_SEPARATOR);
}
define('EOL', "\r\n");

define('X_APP_ROOT', dirname(dirname(__FILE__)));

define('X_DOCUMENT_ROOT', str_replace('/', DS, str_replace('\\', DS, $_SERVER['DOCUMENT_ROOT'])));

define('URL_ROOT_PATH', strpos(X_APP_ROOT, X_DOCUMENT_ROOT) === 0 ? str_replace(DS, '/', substr(X_APP_ROOT, strlen(X_DOCUMENT_ROOT))) : '');

define('X_HTTP_HOST', $_SERVER['HTTP_HOST']);

ini_set('default_charset', DEFAULT_CHARSET);

define('X_SMTP_HOST', X_HTTP_HOST);

define('APPLICATION_NAME', 'T&Q');

define('PAGE_TITLE_PREFIX', APPLICATION_NAME);

define('SMTP_HOST', 'smtp.evitel.net');

define('SMTP_PORT', 25);

define('SMTP_HEADERS_CHARSET', DEFAULT_CHARSET);

define('SMTP_MESSAGE_CHARSET', SMTP_HEADERS_CHARSET);

define('ADMIN_EMAIL', 'admin@shl.com');

?>